package A12;

public class Course {
    private String courseName; // 课程名称
    private Building building; // 关联的建筑

    public Course(String courseName, Building building) {
        this.courseName = courseName;
        this.building = building;
    }

    // getter/setter
    public String getCourseName() {
        return courseName;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }
}